<template>
    <div>
        <div style="text-align: left;">
            患者信息
        </div>
        <br><br>
        <el-table :data="patient" style="width: 100%" border stripe>
            <el-table-column prop="pid" label="编号"> </el-table-column>
            <el-table-column prop="pname" label="姓名"> </el-table-column>
            <el-table-column prop="psex" label="性别"> </el-table-column>
        </el-table>
        <el-table :data="patient" style="width: 100%" border stripe>
            <el-table-column prop="patbir" label="出生日期"> </el-table-column>
            <el-table-column prop="identify" label="身份证号"> </el-table-column>
            <el-table-column prop="phone" label="手机号"> </el-table-column>
        </el-table>
    </div>
</template>

<script>
//导出
export default {
    data() {
        return {
            //患者信息
            patient:[],
        };
    },
    methods: {
        list() {
            this.$axios.get("patient/getOne")
                .then((result) => {
                    let vo = result.data;
                    if (vo.code == 200) {
                        this.patient=vo.data;
                    }
                }).catch((err) => {
                    console.log(err);
                });
        }
    },
    mounted() {
        this.list();
    },
};
</script>
<style></style>